<template>
	<view class="root-box root-container root-page-top">
		<uv-navbar autoBack placeholder bgColor="transparent" :fixed="false" title="推广员" />
		<view class="content">
			<uv-search inputAlign="left" :showAction="false" :placeholder="placeholderTxt" v-model="keyWordVal"
				@change="onSearchChange"></uv-search>
			<view class="line2-box mt-30">
				<view class="mt-4"><uv-icon name="plus" color="red" size="10" bold></uv-icon></view>
				<view class="cred fz32">添加推广员</view>
			</view>
			<view class="banner-box mt-30">
				<view class="banner-item-box banner-item-bg1 box-sh-item">
					<view class="fz28">已发福卡数</view>
					<view class="fz60 fzW">0</view>
				</view>
				<view class="banner-item-box banner-item-bg2 box-sh-item">
					<view class="fz28">未发福卡数</view>
					<view class="fz60 fzW">0</view>
				</view>
			</view>
		</view>
		<view class="loop-container">
			<view class="loop-item box-sh-item">
				<view class="flx-default cdark fz28 mt-10">
					<view class="loop-item-child">推广员编号：</view>
					<view class="loop-item-child-right">02</view>
				</view>
				<view class="flx-default cdark fz28 mt-10">
					<view class="loop-item-child">推广员姓名：</view>
					<view class="loop-item-child-right">杨洋</view>
				</view>
				<view class="flx-default cdark fz28 mt-10">
					<view class="loop-item-child">推广员手机号：</view>
					<view class="loop-item-child-right">15627276639</view>
				</view>
				<view class="flx-default-sb mt-20">
					<view class="flx-default">
						<view class="mr-10"><tui-button type="danger" plain size="24" width="110rpx" height="40rpx">邀请码</tui-button></view>
						<view class="mr-10"><tui-button type="danger" plain size="24" width="110rpx" height="40rpx">编辑</tui-button></view>
						<view class="mr-10"><tui-button type="danger" size="24" width="110rpx" height="40rpx">删除</tui-button></view>
					</view>
					<view class="flx-default fz30 cdark fzW">
						<view class="mr-10">推广人数</view>
						<view >0人</view>
					</view>
					
				</view>
            </view>

		</view>

	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue'
	import {
		useUserStore
	} from '@/store'
	import {
		storeToRefs
	} from 'pinia'

	import {


	} from '@/api'
	import {
		navigate
	} from '@/util/tools.js';

	const dataList = ref([])
	const paging = ref(null)

	const placeholderTxt = ref('推广员姓名/手机号')
	const user = useUserStore()
	const keyWordVal = ref(null)
	const onSearchChange = () => {
		//paging.value.reload()
	}


	const init = async () => {}
	init()
</script>

<style lang="scss" scoped>
	.content {
		padding: 30upx;
		box-sizing: border-box;

	}

	.line2-box {
		display: flex;
		flex-direction: row-reverse;

		align-items: center;
		color: red;
	}

	.banner-box {
		display: flex;
		justify-content: space-between;
	}

	.banner-item-box {
		width: 330upx;
		padding: 30upx;
		box-sizing: border-box;
		border-radius: 10upx;


	}

	.banner-item-bg1 {
		background: linear-gradient(to bottom, #fde8e7, #f7afb0);
	}

	.banner-item-bg2 {
		background: linear-gradient(to bottom, #d7f0fc, #73cbf3);
	}

	.loop-item {
		margin-top: 20upx;
		background-color: #fff;
		border-radius: 10upx;
		padding: 30upx;
		box-sizing: border-box;

	}

	.loop-item-child {
		width: 240upx;
	}

	.loop-item-child-right {
		flex: 1;
	}
</style>